package com.yzqp.sys.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 用户 saveForm
 */
@Data
@ApiModel(value = "用户saveForm")
public class UserSaveForm {

    // id
    @ApiModelProperty("编号")
    private Long id;

    @NotBlank(message = "用户账号不能为空")
    @ApiModelProperty("用户账号")
    private String username;

    @NotBlank(message = "用户名称不能为空")
    @ApiModelProperty("用户名称")
    private String name;

    @NotBlank(message = "密码不能为空")
    @ApiModelProperty("密码")
    private String password;

    @NotBlank(message = "邮箱不能为空")
    @ApiModelProperty("邮箱")
    private String email;

    @NotBlank(message = "电话不能为空")
    @ApiModelProperty("电话")
    private String phone;

    @NotNull(message = "身高不能为空")
    @ApiModelProperty("身高")
    private BigDecimal stature;

    @NotNull(message = "年龄不能为空")
    @ApiModelProperty("年龄")
    private Integer age;

    @NotBlank(message = "等级不能为空")
    @ApiModelProperty("等级")
    private String grade;

    @NotNull(message = "生日不能为空")
    @ApiModelProperty("生日")
    private Date birthday;

    @NotNull(message = "禁用标志不能为空")
    @ApiModelProperty("禁用标志")
    private Boolean disableFlag;

    public Boolean getDisableFlag() {
        return disableFlag;
    }

    public void setDisableFlag(Boolean disableFlag) {
        this.disableFlag = disableFlag;
    }
}
